package cn.zjweu.service;

import cn.zjweu.domain.User;

import java.util.List;

public interface UserService {

    /*登录：通过用户名和密码查找用户*/
    User findUserByNameAndPWD(String username, String password);

    /*注册：查找用户是否注册*/
    User findUsername(String username);

    /*注册：存储用户*/
    boolean saveUser(String username, String password, String trueName, String telephone, String city, String address);

    /*用户：修改信息*/
    boolean editUser(User user);

    /*用户：根据ID查找*/
    User findUserById(int userId);

    List<User> findAllUser();

    void resetPWD(int userId);

    void delUserById(int userId);
}
